package in.muton.panels.paginator.components.listitems;

import in.muton.edushare.pages.EduShareBasePage;
import in.muton.edushare.pages.common.EdusharePanel;
import in.muton.edushare.pages.deptpages.DeptCourses;
import in.muton.edushare.pages.deptpages.DeptPeople;
import in.muton.edushare.url.EntityPageParams;
import in.muton.panels.paginator.badgehelpers.course.DeptBadgeInterface;
import in.muton.panels.paginator.helpers.deletelinks.DeptDelete;
import in.muton.panels.paginator.helpers.links.DeptLink;

import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.model.IModel;

import com.edushare.common.vo.Departments;

public class DeptListItem extends EdusharePanel {
	public DeptListItem(String id, EduShareBasePage page,
			IModel<Departments> model, DeptBadgeInterface dbi) {
		super(id, page);
		add(new DeptLink("nameLink", model, "name"));
		add(new BookmarkablePageLink<Void>("courseLink", DeptCourses.class,
				EntityPageParams.getParams(model)));
		add(new BookmarkablePageLink<Void>("peopleLink", DeptPeople.class,
				EntityPageParams.getParams(model)));
		add(new DeptDelete("delete", model, dbi, this));
	}

	private static final long serialVersionUID = 1072484373211820550L;
}
